@layout("/common/_form.html",{js:["/assets/modular/system/menu/menu_add.js"]}){

<form class="layui-form" id="menuForm" lay-filter="menuForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="menuId" type="hidden"/>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">名称
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">菜单编号
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input name="code" placeholder="请输入菜单编号" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">父级编号
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input id="pid" name="pid" type="hidden">
                            <input id="pcodeName" name="pcodeName" placeholder="请输入父级编号" type="text" class="layui-input" autocomplete="off" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">是否是菜单
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="radio" lay-filter="menuFlag" name="menuFlag" value="Y" title="是" checked/>
                            <input type="radio" lay-filter="menuFlag"  name="menuFlag" value="N" title="不是"/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12" style="display: none">
                        <label class="layui-form-label">是否是超管专属
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="radio"  name="adminRoleOnly" value="1" title="是"/>
                            <input type="radio" name="adminRoleOnly" value="0" title="不是" checked/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">请求地址
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input id="url" name="url" placeholder="请输入请求地址" type="text" class="layui-input" autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12" id="iconDiv">
                        <label class="layui-form-label">图标</label>
                        <div class="layui-input-block">
                            <input name="icon" id="icon" placeholder="请输入图标" lay-filter="iconPicker" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">系统分类
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block" id="dictDetails">
                            <input type="radio" name="systemType" value="" title="无" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-inline layui-col-xs12 layui-col-sm12 layui-col-md12">
                        <label class="layui-form-label">排序
                            <span style="color: red;">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input name="sort" placeholder="请输入排序" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row" id="authorityBtnDiv">
                <div class="layui-form-item">
                    <label class="layui-form-label">操作按钮</label>
                    <div class="layui-input-block">
                        <input name="authorityCodes" id="authorityCodes" type="hidden">
                        <input name="authorityNames" id="authorityNames" type="hidden">
                        <input type="checkbox" lay-filter="authorityBtn" value="add" title="添加" data-name="添加">
                        <input type="checkbox" lay-filter="authorityBtn" value="edit" title="修改" data-name="修改">
                        <input type="checkbox" lay-filter="authorityBtn" value="delete" title="删除" data-name="删除">
                        <input type="checkbox" lay-filter="authorityBtn" value="import" title="导入" data-name="导入">
                        <input type="checkbox" lay-filter="authorityBtn" value="export" title="导出" data-name="导出">
                        <input type="checkbox" lay-filter="authorityBtn" value="audit" title="审核|反审" data-name="审核">
                        <input type="checkbox" lay-filter="authorityBtn" value="enable" title="启用|禁用" data-name="启用">
                        <input type="checkbox" lay-filter="authorityBtn" value="firstAudit" title="初审|反初审" data-name="初审">
                        <input type="checkbox" lay-filter="authorityBtn" value="templateDownload" title="模板下载" data-name="模板下载">
                        <input type="checkbox" lay-filter="authorityBtn" value="file" title="附件预览(附件上传、下载)" data-name="附件预览">
                        <input type="checkbox" lay-filter="authorityBtn" value="print" title="打印" data-name="打印">
                        <input type="text" id="customAuthority" class="layui-input " placeholder="自定义操作按钮[名称,权限],例如[添加,add]" autocomplete="off" style="width: 300px;margin: 8px 0px;">
                        <a id="generateAuthorityBtn" class="layui-btn layui-btn-sm layui-btn-normal" style="position: relative;top: -38px;left: 310px;">生成自定义操作</a>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="form-group-bottom text-center" style="z-index: 200">
        <button class="layui-btn layui-btn-sm" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}
